package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * Created by Lyon on 2017/5/11.
 */
@Data
@Table(name = "business")
public class Business extends Model {

    //提交
    public static final int submit = 0;
    //通过审核
    public static final int ok = 1;
    //不通过
    public static final int no = 2;


    @NotBlank
    private String name;

    private Integer uid;
    @NotBlank
    @Length(min = 18,max = 18)
    @Column(name = "idcard")
    private String idCard;
    @NotBlank
    @Length(min = 11,max = 11)
    private String mobile;
    @NotBlank
    private String product;

    private Double money;
    @NotBlank
    @Column(name = "loan_time")
    private String loanTime;
    @NotBlank
    private String area;
    @NotBlank
    private String addr;
    @NotBlank
    private String manager;

    private String remark;

    @Column(name = "is_ok")
    private Integer isOk;

    private String because;

    @Column(name = "is_get")
    private Integer isGet;

}
